package com.lky.service;

import com.lky.bean.Department;
import com.lky.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: DepartmentService
 * @Author: Li_Kangyi
 * @Date: 2021/2/25 21:49
 * @Description: TODO
 */
@Service
public class DepartmentService {
    @Autowired
    DepartmentMapper departmentMapper;

//    获取所有部门：
    public List<Department> getAll(){
        return departmentMapper.selectByExample(null);
    }
}
